/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package east2west.service;

import east2west.dao.SaleCarDAO;
import east2west.dto.SaleCarDTO;
import java.util.ArrayList;

/**
 *
 * @author nguyendat
 */
public class SaleCarService {
    SaleCarDAO salecarDao = new SaleCarDAO();
    public ArrayList<SaleCarDTO> listAll(){
     return  salecarDao.listAll();
    }
    public ArrayList<SaleCarDTO> listFillter(){
        return salecarDao.listFillter();
    }
    public float TotalModel(int id){
        return salecarDao.TotalMode(id);
    }
     public float TotalType(int id){
        return salecarDao.TotalType(id);
    }
public float TotalCost(float price1,float price2){
    return salecarDao.TotalCost(price1, price2);
}
public float TotalAir(boolean air){
    return salecarDao.TotalAir(air);
}
public float TotalSeason(int month1,int month2){
    return salecarDao.totalSeason(month1, month2);
}
public ArrayList<SaleCarDTO> listFillterAir(){
    return salecarDao.listFillterAir();
}
}
